package com.laboratory.report.lab04.lab0402;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 运动员
 */
@AllArgsConstructor
@Data
public class Athlete {

    private String name;
    private int age;
    private String country;

    public void athleteInfo() {
        StringBuilder sb = new StringBuilder();
        sb.append("运动员[name:").append(name)
                .append(", age:").append(age)
                .append(", country:").append(country)
                .append("]");
        System.out.println(sb);
    }
}
